package com.dmm.vod.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dmm.vo.vod.CourseFormVo;
import com.dmm.vo.vod.CoursePublishVo;
import com.dmm.vo.vod.CourseQueryVo;
import com.dmm.vod.entity.Course;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author dmm
 * @since 2022-09-07
 */
public interface CourseService extends IService<Course> {

    Map<String, Object> findPage(Page<Course> pages, CourseQueryVo courseQueryVo);

    //添加课程基本信息
    Long saveCourseInfo(CourseFormVo courseFormVo);

    //根据id查询课程信息
    CourseFormVo getCourseFormVoById(Long id);

    //修改课程信息
    Long updateCourseById(CourseFormVo courseFormVo);

    //根据id获取课程发布信息
    CoursePublishVo getCoursePublishVo(Long id);

    //删除课程
    void removeCourseById(Long id);
}
